<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Snap.svg.js Demo</title>
    <style>
        #svg-container {
            width: 500px;
            height: 500px;
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <svg id="svg-container"></svg>

    <script src="./Snap.svg-0.5.1/dist/snap.svg.js"></script>
    <!-- <script>
        // 创建一个 Snap.svg 实例
        var paper = Snap("#svg-container");

        // 创建一个圆形
        var circle = paper.circle(250, 250, 100);
        circle.attr({
            fill: "#f00",
            stroke: "#000",
            strokeWidth: 2
        });

        // 创建一个矩形
        var rect = paper.rect(200, 200, 100, 100);
        rect.attr({
            fill: "#0f0",
            stroke: "#000",
            strokeWidth: 2
        });

        // 创建一个文本
        var text = paper.text(250, 400, "Hello, Snap.svg!");
        text.attr({
            fill: "#00f",
            fontSize: 24,
            fontFamily: "Arial"
        });

        // 绘制一条路径
        var path = paper.path("M100 100 L200 200 L300 100");
        path.attr({
            fill: "none",
            stroke: "#00f",
            strokeWidth: 2
        });
    </script> -->
</body>
</html>